<template>
	<view class="content">
		<view class="" v-for="(item, idx) in shuju">
			<view class="kuai" @click="tiaozhuan(item)">
				<image class="logo" :src="item.img" mode=""></image>
				<view class="di">
					<view class="neme">{{item.name}}</view>
					<image class="you" src="@/static/wallet/you.png" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				shuju: [
					{
						id: 0,
						name: '钢币',
						img: '../../../static/wallet/lingqian.png',
						url: '',
					},
					{
						id: 1,
						name: '银行卡',
						img: '../../../static/wallet/yhk.png',
						url: './bankCard',
					},
					{
						id: 2,
						name: '积分',
						img: '../../../static/wallet/jifen.png',
						url: '',
					},
				]
			}
		},
		methods: {
			tiaozhuan(item) {
				// console.log('url: ', item.url);
				if (item.url == '') {
					this.$boya.msg('暂未开放')
				} else {
					uni.navigateTo({
						url: item.url
					})
				}
			},
		}
	}
</script>

<style>
	.content {
		padding-top: 28rpx;
		background-color: #EDEDED;
	}

	.kuai {
		display: flex;
		align-items: center;
		background-color: white;
		margin-bottom: 28rpx;
	}

	.di {
		width: 85%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 35rpx 15rpx;
		border-bottom: 1px solid #F8F8F8;
	}

	.logo {
		width: 80rpx;
		height: 80rpx;
		margin-left: 15rpx;
	}

	.you {
		width: 42rpx;
		height: 42rpx;
	}
</style>